<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SP_Sales</title>
    <link rel="stylesheet" href="/static/css/layui.css">
</head>
<style type="text/css">
.head{
        width: 33.3%;
    text-align: center;
}
    #body{
        width: 500px;
        margin: auto;
    }
</style>
<body class="layui-bg-cyan">
<div>
<ul class="layui-nav" >
  <li class="layui-nav-item head"><a href="/index">模拟销售</a></li>
  <li class="layui-nav-item head" ><a href="/management">销售数据</a></li>
  <li class="layui-nav-item head layui-this " ><a href="/table">SQL查询</a></li>
</ul>
</div>
<div id="body" >

    <div id="product">
        <form onsubmit="return select(this)">

            <select name="table" lay-verify="">
                <option value="">请选择一个表</option>
                %for t in tablename:
                <option value="{{t['name']}}">{{t['name']}}</option>
                %end

            </select>

            <button type="submit" >测试</button>

        </form>


    </div>


</div>




</body>
<script src="/static/layui.js"></script>
<script>
    layer.msg("HI")
    layui.use(['form'],function () {
        var form = layui.form
        form.render()
    })

function select(form){

}
</script>
</html>